<?php

class Activity_Controller_Browse_Ajax_Comment_Remove extends Nuo_Controller
{
	function execute($request)
	{
		$commentApi  = Nuo::getApi('activity/comment');
		
		$id = $request -> getParam('data-id');
		$comment= Nuo::getItem($id);
		
		$htmlId = $comment -> getHtmlId();
		
		$commentApi->remove($comment);

		return   array('html_id' => $htmlId);
	}

}
